class Solution(object):
    def containsDuplicate(self, nums):
        """
        :type nums: List[int]
        :rtype: bool
        """
        # Hash表的优势：既能够具备数组的快速查询的优点又能融合链表方便快捷的增加删除元素的优势
        return len(nums) != len(set(nums))# set可以删除重复数组